package com.time.hellotime.common.receiver;

import com.google.gson.annotations.SerializedName;

/**
 * Created by Bing on 2017/12/4.
 * E-mail is tx16bing@163.com
 */

public class JpushBean {

    /**
     * type : notify
     * content : {"msgContent":"内容 ","type":"邀请用户参加志愿活动","title":"标题","createAt":"创建时间"}
     */

    @SerializedName("type")
    private String type;
    @SerializedName("content")
    private Content content;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Content getContent() {
        return content;
    }

    public void setContent(Content content) {
        this.content = content;
    }

    public static class Content {
        /**
         * msgContent : 内容
         * type : 邀请用户参加志愿活动
         * title : 标题
         * createAt : 创建时间
         */

        @SerializedName("msgContent")
        private String msgContent;
        @SerializedName("type")
        private String type;
        @SerializedName("title")
        private String title;
        @SerializedName("createAt")
        private String createAt;

        public String getMsgContent() {
            return msgContent;
        }

        public void setMsgContent(String msgContent) {
            this.msgContent = msgContent;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getCreateAt() {
            return createAt;
        }

        public void setCreateAt(String createAt) {
            this.createAt = createAt;
        }

        @Override
        public String toString() {
            return "Content{" +
                    "msgContent='" + msgContent + '\'' +
                    ", type='" + type + '\'' +
                    ", title='" + title + '\'' +
                    ", createAt='" + createAt + '\'' +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "JpushBean{" +
                "type='" + type + '\'' +
                ", content=" + content +
                '}';
    }
}
